// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.WorkFlowConfigDao;
import com.liuxinlong.modules.entity.WorkFlowConfig;
import com.liuxinlong.modules.mapper.WorkFlowConfigMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年4月23日
 */
@Service
public class WorkFlowConfigDaoImpl extends ServiceImpl<WorkFlowConfigMapper, WorkFlowConfig> implements WorkFlowConfigDao {

    @Override
    public List<WorkFlowConfig> pageWorkflowConfigList(Map<String, Object> queryParam) {
        return baseMapper.pageWorkflowConfigList(queryParam);
    }

    @Override
    public int getWorkflowConfigCount(Map<String, Object> queryParam) {
        return baseMapper.getWorkflowConfigCount(queryParam);
    }

    @Override
    public WorkFlowConfig getEffectiveBusinessWorkflow(int businessType) {
        return baseMapper.getEffectiveBusinessWorkflow(businessType);
    }

    @Override
    public Map<String, Map<String, Object>> getWorkflowConfigMap() {
        return baseMapper.getWorkflowConfigMap();
    }
}
